import NotFound from "../views/notfound/NotFound.vue";
const routers = [
  {
    path: "/index",
    component: () => import("../views/home/Home.vue"),
  },
  {
    path: "/center",
    component: () => import("../views/center/Center.vue"),
  },
  {
    path: "/user-manage/userAdd",
    component: () => import("../views/user-manage/UserAdd.vue"),
  },
  {
    path: "/user-manage/userList",
    component: () => import("../views/user-manage/UserList.vue"),
  },
  {
    path: "/news-manage/newsAdd",
    component: () => import("../views/news-manage/NewsAdd.vue"),
  },
  {
    path: "/news-manage/newsList",
    component: () => import("../views/news-manage/NewsList.vue"),
  },
  {
    path: "/product-manage/productList",
    component: () => import("../views/product-manage/ProductList.vue"),
  },
  {
    path: "/product-manage/productAdd",
    component: () => import("../views/product-manage/ProductAdd.vue"),
  },

  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: NotFound,
  },
];
export default routers;
